
<%@ page import="com.hansi.site.Comment" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'comment.label', default: 'Comment')}" />
        <title><g:message code="default.commentList.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="container">
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="box">
	            <div class="inner">
	                <div class="list">
	                <table>
	                    <thead>
	                        <tr>
	                        
	                            <g:sortableColumn property="id" title="${message(code: 'comment.id.label', default: 'Id')}" />
	                        
	                            <g:sortableColumn property="name" title="${message(code: 'comment.name.label', default: 'Name')}" />
	                        
	                            <g:sortableColumn property="email" title="${message(code: 'comment.email.label', default: 'Email')}" />
	                        
	                            <g:sortableColumn property="content" title="${message(code: 'comment.content.label', default: 'Content')}" />
	                        
	                            <g:sortableColumn property="tel" title="${message(code: 'comment.tel.label', default: 'Tel')}" />
	                        
	                            <g:sortableColumn property="createDay" title="${message(code: 'comment.createDay.label', default: 'createDay')}" />
	                        </tr>
	                    </thead>
	                    <tbody>
	                    <g:each in="${commentInstanceList}" status="i" var="commentInstance">
	                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
	                        
	                            <td><g:link action="show" id="${commentInstance.id}">${fieldValue(bean: commentInstance, field: "id")}</g:link></td>
	                        
	                            <td>${fieldValue(bean: commentInstance, field: "name")}</td>
	                        
	                            <td>${fieldValue(bean: commentInstance, field: "email")}</td>
	                        
	                            <td>${fieldValue(bean: commentInstance, field: "content")}</td>
	                        
	                            <td>${fieldValue(bean: commentInstance, field: "tel")}</td>
	                        
                            	<td><g:formatDate date="${commentInstance.createDay}" /></td>
	                        </tr>
	                    </g:each>
	                    </tbody>
	                </table>
	        		</div>
	        	</div>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${commentInstanceTotal}" />
            </div>
        </div>
    </body>
</html>
